﻿using System;
using Demo.Data.EntityFramework.Model;
using Demo.Data.Model;

namespace Demo.Data.EntityFramework
{
    public static class EntitiesFactory
    {
        public static ICustomer CreateCustomer(string firstName, string lastName)
        {
            if (firstName == null) throw new ArgumentNullException("firstName");
            if (lastName == null) throw new ArgumentNullException("lastName");

            return Customer.CreateCustomer(Guid.NewGuid(), firstName, lastName);
        }

        public static IOrder CreateOrder(Guid customerId)
        {
            return Order.CreateOrder(Guid.NewGuid(), customerId);
        }
    }
}
